.counter {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin: 10px 0;
}

.counter h3 {
  margin: 0 0 15px 0;
  color: #495057;
}

.counter button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  margin: 0 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.counter button:hover {
  background-color: #0056b3;
}

.text-input {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
}

.text-input h3 {
  margin: 0 0 15px 0;
  color: #495057;
}

.text-input input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 10px;
}

.text-input p {
  margin: 5px 0;
  color: #6c757d;
}

.checkbox-example {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
}

.checkbox-example h3 {
  margin: 0 0 15px 0;
  color: #495057;
}

.checkbox-item {
  margin-bottom: 20px;
}

.checkbox-item h4 {
  margin: 0 0 10px 0;
  color: #495057;
}

.checkbox-item label {
  display: block;
  margin-bottom: 5px;
  color: #495057;
}

.checkbox-item input[type="checkbox"] {
  margin-right: 8px;
}

.checkbox-item p {
  margin: 10px 0 0 0;
  color: #6c757d;
  font-style: italic;
}

.radio-example {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
}

.radio-example h3 {
  margin: 0 0 15px 0;
  color: #495057;
}

.radio-group {
  margin-bottom: 20px;
}

.radio-group h4 {
  margin: 0 0 10px 0;
  color: #495057;
}

.radio-group label {
  display: block;
  margin-bottom: 5px;
  color: #495057;
}

.radio-group input[type="radio"] {
  margin-right: 8px;
}

.radio-group p {
  margin: 10px 0 0 0;
  color: #6c757d;
  font-style: italic;
}

.select-example {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
}

.select-example h3 {
  margin: 0 0 15px 0;
  color: #495057;
}

.select-group {
  margin-bottom: 20px;
}

.select-group h4 {
  margin: 0 0 10px 0;
  color: #495057;
}

.select-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 10px;
}

.select-group select[multiple] {
  height: 100px;
}

.select-group p {
  margin: 10px 0 0 0;
  color: #6c757d;
  font-style: italic;
}

.object-state {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
}

.object-state h3 {
  margin: 0 0 15px 0;
  color: #495057;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #495057;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

.state-display {
  margin-top: 20px;
  background-color: #e9ecef;
  padding: 15px;
  border-radius: 4px;
}

.state-display h4 {
  margin: 0 0 10px 0;
  color: #495057;
}

.state-display pre {
  margin: 0;
  font-size: 12px;
  color: #495057;
  white-space: pre-wrap;
  word-break: break-all;
}

.array-state {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
}

.array-state h3 {
  margin: 0 0 15px 0;
  color: #495057;
}

.add-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.add-item input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

.add-item button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.add-item button:hover {
  background-color: #218838;
}

.item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.item-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  align-items: center;
}

.item-list input {
  flex: 1;
  padding: 6px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

.item-list button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.item-list button:hover {
  background-color: #c82333;
}

.functional-update {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 10px 0;
  text-align: center;
}

.functional-update h3 {
  margin: 0 0 15px 0;
  color: #495057;
}

.functional-update p {
  margin: 10px 0;
  color: #495057;
  font-size: 18px;
  font-weight: bold;
}

.functional-update button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  margin: 0 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.functional-update button:hover {
  background-color: #0056b3;
}

.explanation {
  margin-top: 15px;
  padding: 10px;
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 4px;
  color: #0c5460;
  font-size: 14px;
}